import{nextTick as e}from"vue";const o={show:(e=0)=>{if(!window.overlay){const o=document.body,r=document.createElement("div");r.className="__fa-overlay",r.style.backgroundColor=`rgba(0, 0, 0, ${e})`,o.insertBefore(r,o.childNodes[0]),window.overlay=!0}},hide:()=>{window.overlay&&e(()=>{const e=document.querySelector(".__fa-overlay");e&&e.parentNode?.removeChild(e),window.overlay=!1})}};export{o as useOverlay};
//# sourceMappingURL=index.mjs.map
